function tau=calcular_tau(vector,inicio, fin)


x_inicial = vector(inicio,1);
x_final = vector(fin,1);
y_inicial = vector(inicio,2);
y_final = vector(fin,2);
pendiente = (y_final - y_inicial) / (x_final - x_inicial);
y_saturado = vector(end,2);
tau = y_saturado/pendiente;

endfunction
